<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
defined( '_JEXEC' ) or die( 'Restricted access' );

require_once (JPATH_COMPONENT.DS.'controller.php');
require_once (JPATH_COMPONENT_ADMINISTRATOR.DS.'helpers'.DS.'functions.php');
//if (!$user->authorize( 'com_duyetbai', 'manage' )) {
//	$mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') );
//}
if ($controller = JRequest::getCmd('view','articleflow')) {
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
	if (file_exists($path)) {
		require_once $path;
	} else {
		$controller = '';
	}
}
$classname = 'ArticleflowController'.ucfirst($controller);

$controller = new $classname( );
// Perform the Request task
$controller->execute(JRequest::getCmd('task'));

// Redirect if set by the controller
$controller->redirect();
?>
